package com.jianganming.mediator;

public class ServiceC implements IService {
    @Override
    public void doAction() {
        System.out.println("C服务调用");
        IService serviceA = Registry.getInstance().getObject("serviceA");
        IService serviceB = Registry.getInstance().getObject("serviceB");
        serviceA.submit();
        serviceB.submit();
    }

    @Override
    public void submit() {
        System.out.println("C服务提交");
    }
}
